package com.edu.client.config;

import com.edu.client.pojo.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import java.util.Date;
import java.util.UUID;

@ComponentScan("com.edu.client")
public class SpringClientConfig {
	@Bean
	public Student getStudent() {
		Student student = new Student();
		student.setId(UUID.randomUUID().toString());
		student.setSex((int) (System.currentTimeMillis() % 2));
		student.setBirthdy(new Date());
		student.setName("litter Xm02");
		return student;
	}

}
